#include "..\headers\ListOf.h"

int main() {
  char S[101] = {0};
  int flag = 0;
  gets(S);
  for (int i = 1; i < strlen(S) - 2; i++) {
    for (int j = strlen(S) - 2; j > 1; j--) {
      if (S[i] == S[j] && S[i + 1] == S[j - 1]) {
        printf("true");
        return 0;
      }
    }
  }
  printf("false");
  return 0;
}
